﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FortuneHeavenCommon.DataMap;
using FortuneHeavan.Game.DAL;

namespace FortuneHeavenBAL
{
    public class cftt_zsjfBO
    {
        public cftt_zsjfDAL _payDAL;
        public cftt_zsjfBO()
            : base()
        {
            _payDAL = new cftt_zsjfDAL();
        }


        public List<cftt_zsjf> GetList(int page, int size, string fromuser, string touser)
        {
            return _payDAL.GetList(page, size, fromuser.Trim(), touser.Trim());
        }
        public int GetTotalSize(string fromuser, string touser)
        {
            return _payDAL.GetTotalSize(fromuser.Trim(), touser.Trim());
        }

        public List<cftt_zsjf> GetListAll(int page, int size, string fromuser, string touser)
        {
            return _payDAL.GetListAll(page, size, fromuser.Trim(), touser.Trim());
        }
        public int GetTotalSizeAll(string fromuser, string touser)
        {
            return _payDAL.GetTotalSizeAll(fromuser.Trim(), touser.Trim());
        }

        public void AddGiveScore(cftt_zsjf val)
        {
            _payDAL.Add(val);
        }

        public List<cftt_zsjf> GetList(string fromuser, string touser)
        {
            return _payDAL.GetList(fromuser != null ? fromuser.Trim() : "", touser != null ? touser.Trim() : "");
        }

        public int GetTotalScore(string fromuser, string touser)
        {
            return _payDAL.GetTotalScore(fromuser != null ? fromuser.Trim() : "", touser != null ? touser.Trim() : "");
        }
    }
}
